.class public Lcom/TwinBlade/PicturePassword/Main;
.super Landroid/preference/PreferenceActivity;
.source "SourceFile"

# interfaces
.implements Landroid/preference/Preference$OnPreferenceClickListener;


# instance fields
.field private a:Landroid/preference/Preference;

.field private b:Landroid/preference/Preference;

.field private c:Landroid/preference/Preference;

.field private d:Landroid/preference/Preference;

.field private e:Landroid/preference/Preference;

.field private f:Landroid/preference/Preference;

.field private g:Landroid/preference/Preference;

.field private h:Landroid/preference/Preference;

.field private i:Landroid/preference/Preference;

.field private j:Landroid/preference/Preference;

.field private k:Landroid/content/SharedPreferences;

.field private l:Landroid/content/Context;

.field private m:I

.field private final n:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 31
    invoke-direct {p0}, Landroid/preference/PreferenceActivity;-><init>()V

    .line 37
    const/4 v0, -0x1

    iput v0, p0, Lcom/TwinBlade/PicturePassword/Main;->m:I

    .line 93
    new-instance v0, Lcom/TwinBlade/PicturePassword/ap;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/ap;-><init>(Lcom/TwinBlade/PicturePassword/Main;)V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->n:Ljava/lang/Runnable;

    .line 31
    return-void
.end method

.method private a()I
    .locals 4

    .prologue
    const/4 v0, 0x0

    .line 133
    :try_start_0
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Main;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Main;->getPackageName()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v1

    .line 134
    iget v0, v1, Landroid/content/pm/PackageInfo;->versionCode:I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 136
    :goto_0
    return v0

    .line 135
    :catch_0
    move-exception v1

    goto :goto_0
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/Main;)Landroid/content/Context;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    return-object v0
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 185
    const-string v0, "point"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 186
    const v0, 0x7f0900d1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 194
    :goto_0
    return-object v0

    .line 187
    :cond_0
    const-string v0, "line"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 188
    const v0, 0x7f0900d2

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 189
    :cond_1
    const-string v0, "circle"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 190
    const v0, 0x7f0900d3

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 191
    :cond_2
    const-string v0, "none"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 192
    const v0, 0x7f0900d0

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    .line 194
    :cond_3
    const-string v0, "Error"

    goto :goto_0
.end method

.method static synthetic a(Lcom/TwinBlade/PicturePassword/Main;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 37
    iput p1, p0, Lcom/TwinBlade/PicturePassword/Main;->m:I

    return-void
.end method

.method static synthetic b(Lcom/TwinBlade/PicturePassword/Main;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 34
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method private b()Ljava/lang/String;
    .locals 3

    .prologue
    .line 142
    :try_start_0
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Main;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Main;->getPackageName()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v0

    .line 143
    iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 145
    :goto_0
    return-object v0

    .line 144
    :catch_0
    move-exception v0

    .line 145
    const-string v0, "Unknown"

    goto :goto_0
.end method

.method static synthetic c(Lcom/TwinBlade/PicturePassword/Main;)I
    .locals 1
    .parameter

    .prologue
    .line 37
    iget v0, p0, Lcom/TwinBlade/PicturePassword/Main;->m:I

    return v0
.end method

.method private c()Ljava/lang/String;
    .locals 3

    .prologue
    .line 150
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/Main;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const/high16 v1, 0x7f07

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;

    move-result-object v0

    .line 152
    new-instance v1, Ljava/io/InputStreamReader;

    invoke-direct {v1, v0}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    .line 153
    new-instance v0, Ljava/io/BufferedReader;

    invoke-direct {v0, v1}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 155
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 158
    :goto_0
    :try_start_0
    invoke-virtual {v0}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    if-nez v2, :cond_0

    .line 165
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    return-object v0

    .line 159
    :cond_0
    :try_start_1
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 160
    const/16 v2, 0xa

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 162
    :catch_0
    move-exception v0

    .line 163
    const-string v0, "Error"

    goto :goto_1
.end method

.method static synthetic d(Lcom/TwinBlade/PicturePassword/Main;)I
    .locals 1
    .parameter

    .prologue
    .line 131
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->a()I

    move-result v0

    return v0
.end method

.method private d()V
    .locals 7

    .prologue
    .line 169
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v1, "FirstGestureType"

    const-string v2, "none"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 170
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v2, "SecondGestureType"

    const-string v3, "none"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 171
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v3, "ThirdGestureType"

    const-string v4, "none"

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 173
    invoke-static {p0}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v3

    if-nez v3, :cond_0

    .line 174
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/Main;->c:Landroid/preference/Preference;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v4, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, " - "

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v1}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v2}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 182
    :goto_0
    return-void

    .line 176
    :cond_0
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v4, "FourthGestureType"

    const-string v5, "none"

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 177
    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v5, "FifthGestureType"

    const-string v6, "none"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 179
    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/Main;->c:Landroid/preference/Preference;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v6, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, " - "

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v1}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v2}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 180
    const-string v1, " - "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v3}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " - "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-direct {p0, v4}, Lcom/TwinBlade/PicturePassword/Main;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 179
    invoke-virtual {v5, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/TwinBlade/PicturePassword/Main;)Ljava/lang/Runnable;
    .locals 1
    .parameter

    .prologue
    .line 93
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->n:Ljava/lang/Runnable;

    return-object v0
.end method

.method private e()V
    .locals 1

    .prologue
    .line 265
    new-instance v0, Lcom/TwinBlade/PicturePassword/au;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/au;-><init>(Lcom/TwinBlade/PicturePassword/Main;)V

    .line 322
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 323
    return-void
.end method

.method private f()V
    .locals 4

    .prologue
    .line 326
    invoke-static {p0}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 327
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    const v1, 0x7f09001d

    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 328
    const v0, 0x7f09001e

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 329
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v2, "PayPalKey"

    const-string v3, "-1"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "-1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 330
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v0, ". Press to copy the PayPal Serial Key"

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 334
    :goto_0
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    invoke-virtual {v1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 340
    :goto_1
    return-void

    .line 332
    :cond_0
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/preference/Preference;->setEnabled(Z)V

    goto :goto_0

    .line 336
    :cond_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    const v1, 0x7f09001f

    invoke-virtual {p0, v1}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setTitle(Ljava/lang/CharSequence;)V

    .line 337
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

    .line 338
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setEnabled(Z)V

    goto :goto_1
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 352
    invoke-super {p0, p1, p2, p3}, Landroid/preference/PreferenceActivity;->onActivityResult(IILandroid/content/Intent;)V

    .line 353
    packed-switch p1, :pswitch_data_0

    .line 361
    :cond_0
    :goto_0
    return-void

    .line 355
    :pswitch_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v1, "ShowHint"

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 356
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->c(Landroid/content/Context;)V

    .line 357
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "ShowHint"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    goto :goto_0

    .line 353
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 4
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    .line 41
    invoke-static {p0}, Lcom/TwinBlade/PicturePassword/Utilities;->e(Landroid/content/Context;)V

    .line 42
    invoke-super {p0, p1}, Landroid/preference/PreferenceActivity;->onCreate(Landroid/os/Bundle;)V

    .line 44
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    .line 45
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v1, "ShowSetupWizard"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 46
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/TwinBlade/PicturePassword/SetupWizard;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 47
    invoke-virtual {p0, v0, v2}, Lcom/TwinBlade/PicturePassword/Main;->startActivityForResult(Landroid/content/Intent;I)V

    .line 50
    :cond_0
    const/high16 v0, 0x7f06

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->addPreferencesFromResource(I)V

    .line 51
    iput-object p0, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    .line 53
    const-string v0, "mainImage"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->a:Landroid/preference/Preference;

    .line 54
    const-string v0, "mainGestures"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->b:Landroid/preference/Preference;

    .line 55
    const-string v0, "mainTest"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->d:Landroid/preference/Preference;

    .line 56
    const-string v0, "mainStart"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->e:Landroid/preference/Preference;

    .line 57
    const-string v0, "mainStop"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->f:Landroid/preference/Preference;

    .line 58
    const-string v0, "mainPreferences"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->g:Landroid/preference/Preference;

    .line 59
    const-string v0, "mainSupport"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->h:Landroid/preference/Preference;

    .line 60
    const-string v0, "mainAbout"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->j:Landroid/preference/Preference;

    .line 61
    const-string v0, "CurrentlyEnabledGestures"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->c:Landroid/preference/Preference;

    .line 62
    const-string v0, "PlusKey"

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    .line 64
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->a:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 65
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->b:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 66
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->d:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 67
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->e:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 68
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->f:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 69
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->g:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 70
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->h:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 71
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->j:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 72
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->c:Landroid/preference/Preference;

    invoke-virtual {v0, p0}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 73
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->i:Landroid/preference/Preference;

    new-instance v1, Lcom/TwinBlade/PicturePassword/at;

    invoke-direct {v1, p0}, Lcom/TwinBlade/PicturePassword/at;-><init>(Lcom/TwinBlade/PicturePassword/Main;)V

    invoke-virtual {v0, v1}, Landroid/preference/Preference;->setOnPreferenceClickListener(Landroid/preference/Preference$OnPreferenceClickListener;)V

    .line 85
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->a()I

    move-result v0

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    const-string v2, "logVersion"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    if-le v0, v1, :cond_1

    .line 86
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;)V

    .line 87
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "logVersion"

    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->a()I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 90
    :cond_1
    sput-boolean v3, Lcom/TwinBlade/PicturePassword/Utilities;->a:Z

    .line 91
    return-void
.end method

.method public onPreferenceClick(Landroid/preference/Preference;)Z
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x3

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 199
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->c:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 201
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/bd;->a(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 202
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    const-class v3, Lcom/TwinBlade/PicturePassword/GesturePreferencesPlus;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 206
    :goto_0
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    move v0, v1

    .line 261
    :cond_0
    :goto_1
    return v0

    .line 204
    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->l:Landroid/content/Context;

    const-class v3, Lcom/TwinBlade/PicturePassword/GesturePreferences;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    goto :goto_0

    .line 208
    :cond_2
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->a:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 209
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/Image;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 210
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    move v0, v1

    .line 211
    goto :goto_1

    .line 212
    :cond_3
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->b:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    .line 213
    invoke-static {v0, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(ZZ)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 214
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 215
    const-string v2, "Code"

    const-string v3, "Save"

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 216
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    :cond_4
    move v0, v1

    .line 218
    goto :goto_1

    .line 219
    :cond_5
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->d:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    .line 220
    invoke-static {v1, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(ZZ)Z

    move-result v0

    if-eqz v0, :cond_6

    .line 221
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/SaveActivity;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 222
    const-string v2, "Code"

    const-string v3, "Test"

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 223
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    :cond_6
    move v0, v1

    .line 225
    goto :goto_1

    .line 226
    :cond_7
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->e:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_9

    .line 228
    invoke-static {v1, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(ZZ)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 229
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/AService;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 230
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 231
    const v0, 0x7f0900c1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {p0, v0, v4, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 233
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v2, "MainEnabled"

    invoke-interface {v0, v2, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    :cond_8
    move v0, v1

    .line 235
    goto/16 :goto_1

    .line 236
    :cond_9
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->f:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_a

    .line 237
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/TwinBlade/PicturePassword/AService;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 238
    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/Main;->stopService(Landroid/content/Intent;)Z

    .line 239
    const v2, 0x7f0900c2

    invoke-virtual {p0, v2}, Lcom/TwinBlade/PicturePassword/Main;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {p0, v2, v4, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 241
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->k:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "MainEnabled"

    invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    move v0, v1

    .line 242
    goto/16 :goto_1

    .line 243
    :cond_a
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->g:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_b

    .line 244
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/Preferences;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 245
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    move v0, v1

    .line 246
    goto/16 :goto_1

    .line 247
    :cond_b
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/Main;->h:Landroid/preference/Preference;

    invoke-virtual {p1, v2}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_c

    .line 248
    new-instance v0, Landroid/content/Intent;

    const-class v2, Lcom/TwinBlade/PicturePassword/Support;

    invoke-direct {v0, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 249
    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/Main;->startActivity(Landroid/content/Intent;)V

    move v0, v1

    .line 250
    goto/16 :goto_1

    .line 251
    :cond_c
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/Main;->j:Landroid/preference/Preference;

    invoke-virtual {p1, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 252
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Version: "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 253
    const-string v2, "Application Developed By: TwinBlade Corp."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 254
    const-string v2, "With Special Thanks To: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 255
    const-string v2, "French Translator: Cunione"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 256
    const-string v2, "German Translator: David M."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\n"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 257
    const-string v2, "Romanian Translator: Catalin V."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 252
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 259
    invoke-static {p0, v1}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;)V

    goto/16 :goto_1
.end method

.method public onResume()V
    .locals 0

    .prologue
    .line 344
    invoke-super {p0}, Landroid/preference/PreferenceActivity;->onResume()V

    .line 345
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->f()V

    .line 346
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->d()V

    .line 347
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/Main;->e()V

    .line 348
    return-void
.end method
